home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / entity.cc < prev    next >
C/C++ Source or Header  |  1995-02-22  |  410b  |  24 lines

  1. /*    Copyright Alex Hornby 1994/1995. All rights reserved.
  2.      See file README for details
  3. */
  4.  
  5. #include "sprite.h"
  6. #include "soul.h"
  7. #include "entity.h"
  8.  
  9. Entity :: Entity(int lives, int maxnrg, int val) : Sprite(), Soul(lives,maxnrg,val)
  10. {
  11. }
  12.  
  13. Entity :: Entity( const Entity& p) : Sprite(p) , Soul(p)
  14. {
  15. }
  16.  
  17. Entity& 
  18. Entity :: operator=(const Entity& p)
  19. {
  20.     Sprite::operator=(p);
  21.     Soul::operator=(p);
  22.     return *this;
  23. }
  24.